Jimi Xenidis [Mon, 28 Aug 2006 15:52:17 +0000 (11:52 -0400)]
[XEN][POWERPC] correct HTAB allocation typo
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Mon, 28 Aug 2006 00:48:06 +0000 (20:48 -0400)]
[XEN][POWERPC] allocate HTAB using shadow calls
This patch will use the shadow_ops call to allocate the domains Hashed
Page-table. This allows for the management tools to customize its size
for the domain.
Warning! The management tools have yet to be updated to use this
properly and update the devtree accordingly so code will assume 64M
RAM and 1M HTAB while the shadow up continues to receive a 0 request.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Sun, 27 Aug 2006 20:12:00 +0000 (16:12 -0400)]
[XEN][POWERPC] Allocate more memory than RMA for Dom0
The following patch will only effect Dom0 at the moment and allow it
to be created with memory larger than RMA. It works by allocating
extents (AKA chunks) of memory of an order specified by the processor.
The extent size should be a value that is capabable of mapping a
"large page" so we use the 970s large page size. These extents are
tracked by an extents list that simply tracks these page allocations
and what there mapping is. Other sub-systems effected by this:
- Dom0 OFD devtree /memory cleanup
- log_large_page_sizes is now an array
- Config for minumum Dom0 size
Caveats:
- There is a hack around HTAB allocation because we currently
allocate one at domain creation time, this will be correct by a
patch to follow.
- Dom0, or domains capable of mapping mfns byt have their extents be
PFN=MFN
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Fri, 25 Aug 2006 20:09:36 +0000 (15:09 -0500)]
[XEN][POWERPC] split out an allocate_rma() function from arch_domain_create()
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Fri, 25 Aug 2006 19:48:07 +0000 (14:48 -0500)]
[XEN][POWERPC] restructure RMA code to allow dom0 tools to allocate in the future
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 25 Aug 2006 19:28:48 +0000 (15:28 -0400)]
[XEN][POWERPC] Lots of domain page managment cleanups.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 25 Aug 2006 18:34:51 +0000 (14:34 -0400)]
[XEN][POWERPC] Implement H_READ from the PAPR
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 25 Aug 2006 01:07:46 +0000 (21:07 -0400)]
[POWERPC] detect how to call nm for xen-syms.S
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 23 Aug 2006 09:44:46 +0000 (05:44 -0400)]
[XEN][POWERPC] show symbols in backtrace
This was already there, just had to hook it up.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 23 Aug 2006 08:59:10 +0000 (04:59 -0400)]
[XEN][POWERPC] add show_backtrace()
Total rip off of xmon_show_stack() from Linux:arch/powerpc/xmon/xmon.c.
This will allow a numeric only stack traceback of Xen exectution.
Currently only triggered by BUG() et.al.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 22 Aug 2006 21:20:58 +0000 (17:20 -0400)]
[XEN][POWERPC] Find all of memory and feed all the heaps
This code walks the OF dev tree, finding end-of-memory and memory holes.
All memory beyond the hypervisor's RMA is added to domheap. (Previously
only memory upto 1st hole was used.) Finally, parts of setup.c have been
swept into memory.c as cleanup.
Based on a patch by Dan Poff <poff@us.ibm.com>.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 22 Aug 2006 15:17:09 +0000 (11:17 -0400)]
[XEN][POWERPC] Explain the RMA values a little more
Since I did not understand them myself.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 22 Aug 2006 15:16:01 +0000 (11:16 -0400)]
[POWERPC] Take all secondary processors offline after they are enumerated
Xen assumes that an online CPU is a schedualable CPU, but we just are
not there yet. Remove this fragment when scheduling processors
actually works.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 22 Aug 2006 13:53:34 +0000 (09:53 -0400)]
[POWERPC] Enable SMP, smp_processor_id, for_each_cpu, nosmp, maxcpus=X
Add support for the "nosmp" and "maxcpus=X" command line options, and
address Hollis' concerns about comments, prototypes, and panic messages.
Handshake with secondary processors, move all of them out of their OF
spinloop even if there are more of them than NR_CPUS, enumerate them
according to a logical rather than firmware numerical space, give them a
stack, make them run C code to initialize their HIDs, initialize their
r13 registers to a per-processor pointer, enable smp_processor_id and
and properly set the maps of present and online CPUs.
Tested on 2-way JS20, 4-way JS21, and 16-way systemsim-gpul, with
NR_CPUS from 1 to 64, nosmp, and maxcpus from 1 to 3.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Mon, 21 Aug 2006 14:04:37 +0000 (10:04 -0400)]
[XEN][POWERPC] more -Wshadow issues with gcc4
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Mon, 21 Aug 2006 10:57:14 +0000 (06:57 -0400)]
[POWERPC] copyright
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Mon, 21 Aug 2006 10:53:55 +0000 (06:53 -0400)]
[POWERPC] missing shadow skeleton
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Sun, 20 Aug 2006 17:28:45 +0000 (13:28 -0400)]
[XEN][POWERPC] Xen shadow ops, mostly skeleton code
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Tue, 29 Aug 2006 19:36:16 +0000 (14:36 -0500)]
[XEN][POWERPC] implement gnttab_mark_dirty()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Sun, 20 Aug 2006 17:00:31 +0000 (13:00 -0400)]
[POWERPC] fix bad merge
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Sun, 20 Aug 2006 15:07:52 +0000 (11:07 -0400)]
[XEN][POWERPC] remove .data.* catch-all from linker script
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Tue, 29 Aug 2006 19:18:23 +0000 (14:18 -0500)]
[POWERPC][TOOLS] sync with start_info_t changes
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 18 Aug 2006 09:39:01 +0000 (05:39 -0400)]
[XEN][POWERPC] Boot Module freeing
- Fix bad logic that frees the modules anyway.
- Allow for the absence of a Dom0 to continue execution until it's
time to load it, useful for debugging bringup code.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 18 Aug 2006 09:17:14 +0000 (05:17 -0400)]
[XEN][POWERPC] Enable gcc -Wshadow and fix the warnings
As suggested by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 18 Aug 2006 00:38:08 +0000 (20:38 -0400)]
[XEN][POWERPC] workaround for broken claim is insufficient
Ifdef'ed out so we can revisit, maybe.
Also add a check to make sure we allocated enough for the devtree.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 17 Aug 2006 23:03:06 +0000 (19:03 -0400)]
[XEN][POWERPC] find_space returns garbage
Based-on-patch-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Tue, 29 Aug 2006 18:20:31 +0000 (13:20 -0500)]
[XEN][POWERPC] memory clean up (phase 3)
The following changes are included:
Open Firmware:
- use all args for of_claim()
- handle broken claim methods as best we can
- describe where the Dom0 image is comming from
- stop copying the Dom0 image
Heaps:
- make sure we do not overwrite the oftree
- release as much memory as possible to xenheap
- release Dom0 image after we are done with it
- Lots of checks and simplifications
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 17 Aug 2006 11:10:57 +0000 (07:10 -0400)]
[XEN][POWERPC] Fix PHDR issues with large .data.percpu sections
This patch tells the link to only create one PHDR and place all sections
in it, also removing an unrequired mapping for the .data.percpu section.
This avoids the "Not enough room for program headers (allocated 2, need 3)"
Booted on a JS20.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Ian Campbell [Tue, 29 Aug 2006 11:23:11 +0000 (12:23 +0100)]
Fix definition of LINUX_VER so that doesn't pickup LINUX_VER3
from mk.linux-2.6-xen. This makes "make mkpatches" work again.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
tdeegan@york.uk.xensource.com [Tue, 29 Aug 2006 08:42:35 +0000 (09:42 +0100)]
Merge
tdeegan@york.uk.xensource.com [Tue, 29 Aug 2006 08:37:30 +0000 (09:37 +0100)]
[XEN] Off-by one error in range checks translating gfns to mfns
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Christian Limpach [Mon, 28 Aug 2006 21:44:31 +0000 (22:44 +0100)]
[qemu patches] Update patches for changeset 11273:
a1cff03ac7d7.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Mon, 28 Aug 2006 21:43:09 +0000 (22:43 +0100)]
[qemu] Fix PCI config header space writes and set Subsystem-Vendor ID fields.
Fix failure in Windows HCT's PCI-Compliance-Test by invalidating the
writing to read-only/reserved fields in PCI configuration space header
and giving Subsystem-Vendor-ID field a valid value via copying Vendor-ID
field into it.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Steven Hand [Mon, 28 Aug 2006 20:57:34 +0000 (21:57 +0100)]
Fix hypervisor build with performance counters after -unstable
cset 11257:
86d26e6ec89b
Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
Steven Hand [Mon, 28 Aug 2006 20:40:42 +0000 (21:40 +0100)]
Fix shadow mode 32/PAE linux writable heuristic and add 64-bit version.
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Mon, 28 Aug 2006 20:25:13 +0000 (21:25 +0100)]
Fix PAE-mode HVM guests with the new shadow code.
Signed-off-by: Steven Hand <steven@xensource.com>
Christian Limpach [Mon, 28 Aug 2006 19:22:56 +0000 (20:22 +0100)]
[qemu patches] Update patches for changeset 11268:
350a73222a51.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Mon, 28 Aug 2006 19:21:38 +0000 (20:21 +0100)]
[qemu] Add target-i386-dm and hw *.[ch] files to TAGS.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tdeegan@york.uk.xensource.com [Mon, 28 Aug 2006 16:50:21 +0000 (17:50 +0100)]
[HVM] Don't assume that VMENTER causes a TLB flush, when validating
shadow pagetable updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 12:08:41 +0000 (13:08 +0100)]
Fix Intel copyright notice in a single source file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 12:05:00 +0000 (13:05 +0100)]
[XEND] Move all of the various log files created by xen to
be under /var/log/xen instead of under /var/log directly. This has
the advantage of cleaning things up a little and also can make it
easier to restrict the permissions needed by xend.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:59:07 +0000 (12:59 +0100)]
[HVM] [SMBIOS] Duplicate UUID into serial number in SMBIOS tables.
Windows zeroes out the UUID in the SMBIOS tables, but the identifier
is often needed by systems management code. Duplicating the UUID
as the virtual system's serial number should help.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:50:55 +0000 (12:50 +0100)]
The following patch fixes a bug where xenconsoled will can SEGV
because it uses FD_ISSET(-1,xxx). Since the code is written that any
ring/tty handler can set d->tty_fd to -1 it has to be checked
_every_time_.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:49:14 +0000 (12:49 +0100)]
[TOOLS] Remove Gentoo-specific workaround in networking
scripts -- apparently it is not needed (reported by
Tuan Van <lang.thang@gmail.com>). See bugzilla issue #741
for more details.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:41:15 +0000 (12:41 +0100)]
[TOOLS] Clean up routed vifs quietly on domain destruction.
I have experienced that the vif-route script does not work as expected
when deleting a virtual interface (Redhat FC5). Both of the commands
"ifdown" and "ip route" cause an early vif-route script exit and
therefore will cause skipping of the later script commands (such as
cleaning up iptables entries for the default 'antispoof'). The
vif-route
script creates the following syslog error entry:
"/etc/xen/scripts/vif-route failed; error detected."
It appears that both of the problematic commands are actually
redundant
when destroying domains:
1. the interface is already gone (I assume because the domain frontend
is gone already) --> ifdown does not do anything
2. the route is gone as well since the interface has disappeared -->
ip
route del does not do anything
Executing those redundant commands with "do_without_error" ensures
that
the script completes and cleans up iptables rules. The attached
RFC-patch only masks those commands when bringing down an interface,
so
that domain creation continues to fail in case of vif setup problems
(intended behavior).
Having the iptables cleanup called correctly by vif-route is important
to keep the iptables rule-set clean, otherwise antispoof rules
accumulate with every vif creation.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:35:43 +0000 (12:35 +0100)]
[HVM][SVM] Allow SVM to take advantage of flag_dr_dirty.
Signed-off-by: Travis Betak <travis.betak@amd.com>
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:09:36 +0000 (12:09 +0100)]
[XEN] Rename shadow2 to shadow and move the various source
files into a sensible directory hierarchy.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Sun, 27 Aug 2006 05:56:01 +0000 (06:56 +0100)]
[PATCH] fix null pointer dereference in xen_guest_lookup()
The latest ELF changes have a null pointer dereference bug when you
have neither an elf notes section nor a __xen_guest_string. This patch
checks for the existence of the __xen_guest_string prior to using it.
Please apply. Thanks,
Alex
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---
kaf24@firebug.cl.cam.ac.uk [Fri, 25 Aug 2006 21:35:24 +0000 (22:35 +0100)]
[XEN] Fix silly transposition typo in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 25 Aug 2006 17:39:10 +0000 (18:39 +0100)]
Replace dom0_ops hypercall with three new hypercalls:
1. platform_op -- used by dom0 kernel to perform actions on the
hardware platform (e.g., MTRR access, microcode update, platform
quirks, ...)
2. domctl -- used by management tools to control a specified domain
3. sysctl -- used by management tools for system-wide actions
Benefits include more sensible factoring of actions to
hypercalls. Also allows tool compatibility to be tracked separately
from the dom0 kernel. The assumption is that it will be easier to
replace libxenctrl, libxenguest and Xen as a matched set if the
dom0 kernel does not need to be replaced too (e.g., because that
would require vendor revalidation).
From here on we hope to maintain dom0 kernel compatibility. This
promise is not extended to tool compatibility beyond the existing
guarantee that compatibility will not be broken within a three-level
stable release [3.0.2, 3.0.3, etc.].
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Fri, 25 Aug 2006 09:39:24 +0000 (10:39 +0100)]
[TOOLS] Use ELFSIZE to pick the ELF structures to use in readnotes.c
We can remove Elf_Ehdr since it is only used for e_ident which is an
unsigned char array.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Fri, 25 Aug 2006 09:06:24 +0000 (10:06 +0100)]
merge
kfraser@localhost.localdomain [Thu, 24 Aug 2006 16:58:28 +0000 (17:58 +0100)]
[LINUX] Remove hypercall permission checks from privcmd driver.
This will allow the tools management to be revised independently
of dom0 kernel interfaces. Currently tools cannot be 'smarter'
than the kernel in terms of hypercalls they know about, because
the kernel disallows access to any hypercalls it does not know
about.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 24 Aug 2006 16:24:54 +0000 (17:24 +0100)]
[HVM] Fixes to the ACPI table definition.
1) Fixed HCT test "Unreported Memory and I/O Port test" for memory
range 0xC0000~0xFFFFF and IO 0x378
2) Make consistent with non-acpi OS by enabling LPT1, remove com2
which conflicts with usb mouse
3) Fixed the USB HID-Compliant mouse when set
usbdevice='tablet'/'mouse'
4) Fixed Vista boot by removing old NIC "resourceConsumer"
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
Steven Hand [Thu, 24 Aug 2006 15:25:49 +0000 (16:25 +0100)]
Remove redundant performance counters.
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Thu, 24 Aug 2006 13:07:01 +0000 (14:07 +0100)]
Ensure get_dom_domid() terminates even when /local/domain/<foo>/name is
not present.
Signed-off-by: Steven Hand <steven@xensource.com>
Ian Campbell [Thu, 24 Aug 2006 09:58:41 +0000 (10:58 +0100)]
[POWERPC] Remove references to xen_guest_string from ppc dom0 builder.
The xen_guest_string should not be examined directly and the ppc code
doesn't use it yet anyway.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Thu, 24 Aug 2006 08:49:41 +0000 (09:49 +0100)]
[XEN] Fix shadow2 issues with HVM guests.
This supercedes 11243:
51a98a6c2c054bfc37c90a5a3f29929f2347bda8
which was incorrect because the data operand type codes in
the opcode table are not correct for some special cases: one
of these happens to be PUSH, which is the instruction we
particularly need to fix!
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Wed, 23 Aug 2006 22:12:56 +0000 (23:12 +0100)]
This small patch adds back a closing paranthesis that has gone lost. It
fixes the build for the Xen access control module.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
Ewan Mellor [Wed, 23 Aug 2006 21:16:02 +0000 (22:16 +0100)]
The various tools expect the device node to be /dev/xen/evtchn -- this
makes it so that udev actually creates the device there
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Ian Campbell [Wed, 23 Aug 2006 17:39:17 +0000 (18:39 +0100)]
merge
Ian Campbell [Wed, 23 Aug 2006 17:38:49 +0000 (18:38 +0100)]
[XEN] Restore backwards compatibility by supporting __xen_guest
section in dom0 loader.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Wed, 23 Aug 2006 17:38:08 +0000 (18:38 +0100)]
[XEN] Fix the x86 emulator to safely fail when it turns out the
faulting memory access was to/from an implicit memory operand
(typically either an instruction fetch or stack access).
Rationalise use of macros for page fault error code flags.
This patch supercedes the fix in changeset 11242.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Wed, 23 Aug 2006 17:35:21 +0000 (18:35 +0100)]
[TOOLS] Cleanups to domU ELF loader.
- Remove debugging statements.
- Cope better with archtectures where neither ELF notes or __xen_guest
are needed or required.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Steven Hand [Wed, 23 Aug 2006 16:25:11 +0000 (17:25 +0100)]
Don't emulate faulting writes to stack. May fix a number of recent hvm
bugs with the new shadow code. A more complete clean-up of the emulation
code will follow.
Signed-off-by: Steven Hand <steven@xensource.com>
kfraser@localhost.localdomain [Wed, 23 Aug 2006 16:14:38 +0000 (17:14 +0100)]
Remove all traces of the obsolete BVT scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 23 Aug 2006 14:02:55 +0000 (15:02 +0100)]
[TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
correct tool to use for hardware perfctr monitoring now.
Also remove unused xc_msr MSR accessor functions from libxenctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Wed, 23 Aug 2006 13:43:48 +0000 (14:43 +0100)]
[TOOLS] Add a simple tool to display the Xen specific ELF notes.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Wed, 23 Aug 2006 13:41:05 +0000 (14:41 +0100)]
[XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.
ELF notes provide a cleaner interface for passing Xen specific
information from the kernel to the domain builder than the existing
__xen_guest section string. The __xen_guest string is retained in
kernels built with 3.0.2 compatability for domU however dom0 requires
the new interface.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Wed, 23 Aug 2006 13:37:39 +0000 (14:37 +0100)]
[TOOLS] Allow tools to load kernels which use an ELF notes segment.
Compatability with kernels using the __xen_guest section is retained.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Wed, 23 Aug 2006 13:36:09 +0000 (14:36 +0100)]
[XEN] Define the types to be used with Xen in the ELF notes section.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Wed, 23 Aug 2006 13:34:25 +0000 (14:34 +0100)]
[LINUX] Define ELFNOTE as a preprocessor macro rather than an assembler macro
Assembler .macros have various issues with string arguments and :varargs.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Wed, 23 Aug 2006 10:27:06 +0000 (11:27 +0100)]
[XEN] Fix pirq_guest_unbind(). Remove unnecessary code
(in fact flush_all_pending_eoi() was broken!).
Based on a patch from Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Tue, 22 Aug 2006 17:51:02 +0000 (18:51 +0100)]
merge
Ian Campbell [Tue, 22 Aug 2006 17:50:22 +0000 (18:50 +0100)]
[XEN] Remove some accidentally commited debug code
from dom0 domain builder.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Tue, 22 Aug 2006 17:50:01 +0000 (18:50 +0100)]
[SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but
not for dom0 kernel!).
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Tue, 22 Aug 2006 17:48:00 +0000 (18:48 +0100)]
merge
Ian Campbell [Tue, 22 Aug 2006 17:47:29 +0000 (18:47 +0100)]
[XEN] Revert changes to dom0 domain builder made by cset 11226.
We require that the dom0 domain builder still sets _PAGE_USER.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Tue, 22 Aug 2006 16:16:58 +0000 (17:16 +0100)]
[HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pci
driver can now handle multi-page hypercall stub areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Tue, 22 Aug 2006 14:55:43 +0000 (15:55 +0100)]
[LINUX] Update x86/64 ELF note patch to version accepted upstream.
Signed-off-by: Ian Campbell <ian.campbell@xesource.com>
kfraser@localhost.localdomain [Tue, 22 Aug 2006 14:26:40 +0000 (15:26 +0100)]
[x86_64] Guests no longer set _PAGE_USER on kernel mappings.
This may allow guest kernels to be run outside ring 3 in future, and
also provides scope for optimisations today (e.g., using global bit on
user mappings).
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Tue, 22 Aug 2006 14:13:07 +0000 (15:13 +0100)]
[hvm] Export gpfn of store page to guest - not mfn.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Anil Madhavapeddy [Tue, 22 Aug 2006 13:59:16 +0000 (14:59 +0100)]
Make add_to_bridge() always leave the device up even when it bails out due to the device already being present on the bridge.
This makes the script more idempotent if run twice (e.g. from hotplug and udev), since the second time the device will be taken down and not brought up again, leaving the host without networking.
Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
Ian Campbell [Tue, 22 Aug 2006 11:20:43 +0000 (12:20 +0100)]
[LINUX] Support creating ELF note segments in the kernel ELF image.
i386 version is taken from 2.6.18-rc4-mm1 and x86_64 version has been
submitted for inclusion.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Tue, 22 Aug 2006 10:34:46 +0000 (11:34 +0100)]
merge.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 10:33:59 +0000 (11:33 +0100)]
[XEN] Debug builds check for correct usage of percpu areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Tue, 22 Aug 2006 10:30:13 +0000 (11:30 +0100)]
[LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Tue, 22 Aug 2006 10:19:48 +0000 (11:19 +0100)]
[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
with for_each_cpu() -- we want to ensure that per_cpu areas are
accessed only for cpus in cpu_possible_map.
Signed-off-by: Keir Fraser <keir@xensource.com>
George Dunlap [Mon, 21 Aug 2006 16:05:11 +0000 (12:05 -0400)]
Added option to xentrace to set the trace buffer size.
Signed-off-by: George Dunlap <gdunlap@xensource.com>
kfraser@localhost.localdomain [Mon, 21 Aug 2006 12:36:05 +0000 (13:36 +0100)]
[XEN] Remove bogus assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Hand [Mon, 21 Aug 2006 12:21:51 +0000 (13:21 +0100)]
Fix assertion.
Signed-off-by: Steven Hand <steven@xensource.com>
kfraser@localhost.localdomain [Mon, 21 Aug 2006 10:51:54 +0000 (11:51 +0100)]
[XEN] Revert patch 11213.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 21 Aug 2006 10:39:27 +0000 (11:39 +0100)]
[XEN] Fix maddr_from_mapped_domain_page().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 21 Aug 2006 09:28:02 +0000 (10:28 +0100)]
[XEN] Fix shadow2 integration with writable-pagetable logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 21 Aug 2006 08:01:53 +0000 (09:01 +0100)]
[XEN] Remove unnecessary printk from invalid opcode debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Sun, 20 Aug 2006 23:11:17 +0000 (00:11 +0100)]
[xend] Add 'xend_config_format' field to the Xend information block.
When running 'xm info' it appears thus:
# xm info
host : 10.13.4.252
release : 2.6.17-1.2157_FC5xen0
version : #1 SMP Tue Jul 11 23:30:05 EDT 2006
machine : x86_64
...snipped rest of data...
cc_compile_domain : build.redhat.com
cc_compile_date : Tue Jul 11 22:50:42 EDT 2006
xend_config_format : 2
It will also appear in the SEXPR returned when doing a GET on the
/xend/node path in XenD's HTTP service:
(node
(system Linux)
(host 10.13.4.252)
(release 2.6.17-1.2157_FC5xen0)
(version '#1 SMP Tue Jul 11 23:30:05 EDT 2006')
(machine x86_64)
...snipped rest of data...
(cc_compile_domain build.redhat.com)
(cc_compile_date 'Tue Jul 11 22:50:42 EDT 2006')
(xend_config_format 2)
)
The patch sets the format to value '2' to indicate that we're on the version
with the new style HVM configuration for CDROM devices. The old style having
implicitly been version '1'.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Christian Limpach [Sun, 20 Aug 2006 23:01:11 +0000 (00:01 +0100)]
[qemu patches] Update patches for changeset 11209:
9bb6c1c1890a.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Sun, 20 Aug 2006 22:59:34 +0000 (23:59 +0100)]
[qemu] hdparm tunable IDE write cache for HVM
qemu 0.8.2 has a flush callback to the storage backends, so now it is
possible to implement hdparm tunable IDE write cache enable/disable for
guest domains, allowing people to pick speed or data consistency on a
case by case basis.
As an added benefit, really large LBA48 IOs will now no longer be broken
up into smaller IOs on the host side.
From: Rik van Riel <riel@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Sun, 20 Aug 2006 22:52:39 +0000 (23:52 +0100)]
[qemu patches] Update patches for changeset 11206:
fc3e7e65b953.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Sun, 20 Aug 2006 22:34:17 +0000 (23:34 +0100)]
[qemu patches] Update patches for changeset 11206:
fc3e7e65b953.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>